package com.tar.system.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tar.system.sys.dao.JdbcAccountDao;
import com.tar.system.sys.service.JdbcAccountService;

@Service
@Transactional
public class JdbcAccountServiceImpl implements JdbcAccountService {
	
	@Autowired
	private JdbcAccountDao accountDao ;

	@Override
	public void transfer() {
		this.accountDao.outMoney("aaa", 200d);
		//int i = 1/0;
		this.accountDao.inMoney("bbb", 200d);
	}

}
